import request from '@/utils/request'

// 查询餐馆菜品列表
export function listResdish(query) {
  return request({
    url: '/system/resdish/list',
    method: 'get',
    params: query
  })
}

// 查询餐馆菜品详细
export function getResdish(dishId) {
  return request({
    url: '/system/resdish/' + dishId,
    method: 'get'
  })
}

// 新增餐馆菜品
export function addResdish(data) {
  return request({
    url: '/system/resdish',
    method: 'post',
    data: data
  })
}

// 修改餐馆菜品
export function updateResdish(data) {
  return request({
    url: '/system/resdish',
    method: 'put',
    data: data
  })
}

// 删除餐馆菜品
export function delResdish(dishId) {
  return request({
    url: '/system/resdish/' + dishId,
    method: 'delete'
  })
}
